﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masDefault.master" AutoEventWireup="true"
    CodeFile="MSDS.aspx.cs" Inherits="MSDS" %>
    <%@ Register Assembly="CommonTagTime" Namespace="CommonTagTime.PagerControl.stylePager2" TagPrefix="cc1" %>
<%@ Import Namespace="CommonTagTime.ModelObject" %>
<%@ Import Namespace="CommonTagTime" %>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <h1 class="clearleft">
        MSDS
    </h1>
    <div class="clear">
    </div>
    <%if (lstResult != null && lstResult.Count > 0)
      {
    %>
    <div class="productPagingTop">
         <cc1:stylePager2 ID="pagerTop" runat="server" 
            OnPageIndexChanging="pagerTop_PageIndexChanging" 
            onpagesizechanging="pagerTop_PageSizeChanging" ShowPageSize="false" 
            ShowViewAll="True"  />
    </div>
   
    <table id="tblMSDS" cellpadding="0" cellspacing="0">
        <tr class="tblHeader">
            <td class="tdBorder listTDHeader" width="30px;">
                No.
            </td>
            <td class="tdBorder listTDHeader">
                Name
            </td>
            <td class="tdBorder listTDHeader" width="80px;">
                SKU
            </td>
            <td class="lastRightTdBorder listTDHeader" width="80px;">
                &nbsp;
            </td>
        </tr>
        <%
               
            for (int i = 0; i < lstResult.Count; i++)
            {
                Document objDoc = lstResult[i];
                if (i % 2 == 0)
                {
        %>
        <tr class="tblItemRow">
            <%}
                else
                {%>
            <tr class="tblAlternatingItemRow">
                <%} %>
                <td class="tdBorder" align="center">
                    <%=(i+1).ToString() %>
                </td>
                <td class="tdBorder" style="padding-left: 5px;" align="left">
                    <%= Server.HtmlEncode(objDoc.Name) %>
                </td>
                <td class="tdBorder" style="padding-right: 5px;" align="right">
                    <%=GetSKU(objDoc.DocumentID)%>
                </td>
                <td class="lastRightTdBorder" align="center">
                    <a class="dLink" href="<%=GetDocumentUrl(objDoc.FileName) %>">Download </a>
                </td>
            </tr>
            <%} %>
    </table>
    <div class="productPagingBottom">
         <cc1:stylePager2 ID="pagerBottom" runat="server" 
            OnPageIndexChanging="pagerTop_PageIndexChanging" 
            onpagesizechanging="pagerTop_PageSizeChanging" ShowPageSize="false" 
            ShowViewAll="True"  />
    </div>
    <div class="clear">
        &nbsp;</div>
    <%} %>
</asp:Content>
